home *** CD-ROM | disk | FTP | other *** search
/ Aimtech Test Drive / Aimtech Test Drive - Icon Author & CBT Express (Aimtech Corporation)(1996).iso / guidtour / iconware / cursor.prt < prev    next >
Text File  |  1994-09-15  |  1KB  |  31 lines

  1. ; DLL functions for returning and setting cursor information.
  2.  
  3. ;The following call loads a mouse cursor:
  4. USER.EXE: HANDLE WINAPI LoadCursor(int, long);
  5. ;Example1-    LoadCursor(0, 32514);
  6. ;This loads the Windows hourglass wait cursor id (found in Windows SDK).
  7. ;In the DLL Call icon it is loaded into @wait_cursor.
  8.  
  9. ;The following call sets the cursor during runtime:
  10. IAUTILS.DLL: HANDLE WINAPI iauSetRunCursor(HANDLE);
  11. ;Example1-    iauSetRunCursor(@wait_cursor);
  12. ;This takes the cursor id loaded in the previous call and changes the
  13. ;runtime cursor to the hourglass.
  14.  
  15. ;The following call gets the mouse cursor position (X,Y):
  16. USER.EXE: void WINAPI GetCursorPos( LPPOINT );
  17. ;Example1-    GetCursorPos(@XY)
  18. ;This would return 100,100 for example.    
  19.  
  20. ;The following call sets the mouse cursor position (X,Y):
  21. USER.EXE: void WINAPI SetCursorPos(INT,INT);
  22. ;Example1-    SetCursorPos(100,100)
  23. ;This example forces the mouse cursor postion to location x=100,y=100.
  24.  
  25. ;The following call turns the mouse cursor on or off system wide:
  26. USER.EXE: int WINAPI ShowCursor(BOOL);
  27. ;Example1-    ShowCursor(0)
  28. ;This example turns off the Windows cursor system wide.
  29. ;Example2-    ShowCursor(-1)
  30. ;This example turns the cursor back on system wide.